/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import helpers.RandomGenerator;

/**
 *
 * @author arnaldo
 */
public class Question {

    private String question;
    private String[] answers;
    private String description;
    private int id;

    public Question() {
        question = RandomGenerator.Questions(1)[0];
        answers = new String[5];
        for (int i = 0; i < 5; i++) {
            answers[i] = RandomGenerator.UserName();
        }
        description = RandomGenerator.CompanyName();
    }

    /**
     * @return the question
     */
    public String getQuestion() {
        return question;
    }

    /**
     * @param question the question to set
     */
    public void setQuestion(String question) {
        this.question = question;
    }

    /**
     * @return the answers
     */
    public String[] getAnswers() {
        return answers;
    }

    /**
     * @param answers the answers to set
     */
    public void setAnswers(String[] answers) {
        this.setAnswers(answers);
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

  
}
